package com.neusoft.springboot03.config;

import com.neusoft.springboot03.domain.Stu;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

//@Configuration  //xml
public class MyConfig {

    @Bean  //《bean》
    public Stu getStu()
    {
        return new Stu(1,"掌声","");
    }
}
